home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
lib
/
obsolete
/
cw_loadstate.pro
< prev
next >
Wrap
Text File
|
1997-07-08
|
1KB
|
41 lines
; $Id: cw_loadstate.pro,v 1.3 1997/01/15 04:02:19 ali Exp $
;
; Copyright (c) 1992-1997, Research Systems, Inc. All rights reserved.
; Unauthorized reproduction prohibited.
;+
; NAME:
; CW_LOADSTATE
;
; PURPOSE:
; --------------------------------------------------------------
; | This is an obsolete routine. New applications should |
; | be written to use the NO_COPY keyword to WIDGET_CONTROL to |
; | efficiently maintain widget state in a UVALUE.) |
; --------------------------------------------------------------
;
; See the description of CW_SAVESTATE.
;
; CATEGORY:
; Compound widgets.
;
; MODIFICATION HISTORY:
; AB, June 1992
;-
pro CW_LOADSTATE, base, state_base, state_stash, state
if (base ne state_base) then begin
; Preserve the existing state before replacing it
if ((n_elements(state_base) ne 0) and $
(WIDGET_INFO(state_base, /VALID) ne 0)) then $
WIDGET_CONTROL, state_stash, SET_UVALUE=state
; Recover the new state
state_base = base
state_stash = widget_info(state_base, /child)
WIDGET_CONTROL, state_stash, GET_UVALUE = state
endif
end